var path = require('path');
var config = require('./dllDev');
var webpack = require('webpack');
var merge = require('webpack-merge');

config = merge(config, {
    output: {
        path: path.join(process.cwd() + '/dll'),
        filename: '[name].min.js',
        library: '[name]'
    },
    plugins: [

        new webpack.optimize.UglifyJsPlugin({
            minimize: true,
            compress: { warnings: false, drop_console: true },
            output: { comments: false }
        })
    ]
})

module.exports = config;
